package vn.edu.saigontech.ncms.service;

import java.util.Collection;
import java.util.Date;
import java.util.List;

import vn.edu.saigontech.ncms.model.info.ReceiptMaintenance;
import vn.edu.saigontech.ncms.service.impl.ReceiptMaintenanceServiceImpl;

public interface ReceiptMaintenanceService extends GenericService<ReceiptMaintenance, Long> {
	
	static final ReceiptMaintenanceService INSTANCE = new ReceiptMaintenanceServiceImpl();
	
	ReceiptMaintenance findByReceiptId(Long receiptId);
	
	Collection<ReceiptMaintenance> findByStudentId(Long studentId);
	
	Collection<ReceiptMaintenance> findActiveByStudentId(Long studentId);
	
	List<Object[]> findByMonthAndYear(int month, int year);

	List<Object[]> findByDates(Date fromDate, Date toDate);
}